﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.ServiceModel.WCF.BindingMessage
{
    [Serializable]
    [XmlRoot("transport")]
    public class SerSecurity
    {
        private SerSecurityMode modeField = SerSecurityMode.Message;
        private SerTransport transportField;
        private SerSecurityMessage messageField;

        [XmlAttribute("mode")]
        public SerSecurityMode Mode
        {
            get
            {
                return modeField;
            }
            set
            {
                modeField = value;
            }
        }

        [XmlElement("transport")]
        public SerTransport Transport
        {
            get
            {
                return transportField;
            }
            set
            {
                transportField = value;
            }
        }

        [XmlElement("message")]
        public SerSecurityMessage Message
        {
            get
            {
                return messageField;
            }
            set
            {
                messageField = value;
            }
        }
    }
}
